package 建造者模式;

public class Client {
    public void testBuilderPattern() {
        ConcreteBuilder1 concreteBuilder1 = new ConcreteBuilder1();//建造者
        Derictor derictor = new Derictor(concreteBuilder1);//监工
        derictor.construct();//建造实例(监工负责监督,建造者负责实际建造)
        String string = concreteBuilder1.getResult();//获取最终生成的结果
        System.out.printf("the result is :%n%s",string);
    }
}
